package com.geek.novel.entity

import com.geek.novel.utils.SnowIdUtil
import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
import io.realm.annotations.RealmClass
import java.util.*

/**
 * 阅读章节
 */
@RealmClass
open class BookSection : RealmObject() {
	
	@PrimaryKey
	open var id:String? = null
	
	open var title: String? = null
	
	open var bookId: String? = null
	
	open var content: String? = null
	
	/**
	 * 章节的索引
	 */
	open var indexId: Long? = null
	

	open var updateDate: Date? = null


	/**书籍爬虫源的信息*/
	open var bookCrawlerId: String? = null

	
	fun initEntity(){
		this.id = ""+SnowIdUtil.getInstance().nextId()
	}
}